import { IS_ENUM, QUERY_SCOPE, STATUS_ENUM } from '@/enum/system';

export const isOptions = [
  {
    label: '是',
    value: IS_ENUM.IS,
  },
  {
    label: '否',
    value: IS_ENUM.NOT,
  },
];
export const onlineOptions = [
  {
    label: '在线',
    value: '1',
  },
  {
    label: '离线',
    value: '0',
  },
];
export const statusOptions = [
  {
    label: '正常',
    value: STATUS_ENUM.NORMAL,
  },
  {
    label: '禁用',
    value: STATUS_ENUM.DISABLE,
  },
];

export const scopeOptions = [
  {
    label: '所有',
    value: QUERY_SCOPE.ALL,
  },
  {
    label: '仅自己',
    value: QUERY_SCOPE.SELF,
  },
  {
    label: '仅下级',
    value: QUERY_SCOPE.CHILD,
  },
  {
    label: '所有下级',
    value: QUERY_SCOPE.ALL_CHILD,
  },
  {
    label: '公共',
    value: QUERY_SCOPE.COMMON,
  },
];
export const deviceColorList = [
  {
    label: '黑白',
    value: '0',
    colorList: ['white', 'black', 'transparent'],
  },
  {
    label: '黑白红',
    value: '1',
    colorList: ['white', 'black', 'red', 'transparent'],
  },
  {
    label: '黑白黄',
    value: '2',
    colorList: ['white', 'black', 'yellow', 'transparent'],
  },
  {
    label: '黑白红黄',
    value: '3',
    colorList: ['white', 'black', 'red', 'yellow', 'transparent'],
  },
];

export const majorList = [
  {
    label: '主模板',
    value: '0',
  },
  {
    label: '副模板',
    value: '1',
  },
];
export const planOptions = [
  {
    label: '单次',
    value: '0',
  },
  {
    label: '每天',
    value: '1',
  },
  {
    label: '自定义日期',
    value: '2',
  },
  {
    label: '星期',
    value: '3',
  },
];
export const colorList = [
  {
    label: '白色',
    value: 'white',
  },
  {
    label: '黑色',
    value: 'black',
  },
  {
    label: '红色',
    value: 'red',
  },
  {
    label: '黄色',
    value: 'yellow',
  },
  {
    label: '透明',
    value: 'transparent',
  },
];

export const auditStatusOptions = [
  {
    label: '正在审核',
    value: '0',
  },
  {
    label: '素材可用',
    value: '1',
  },
  {
    label: '驳回',
    value: '2',
  },
];
export const optionsList = [
  {
    key: 'is',
    options: isOptions,
  },
  {
    key: 'major',
    options: majorList,
  },
  {
    key: 'status',
    options: statusOptions,
  },
  {
    key: 'scoped',
    options: scopeOptions,
  },
  {
    key: 'online',
    options: onlineOptions,
  },
  {
    key: 'device_color',
    options: deviceColorList,
  },
  {
    key: 'audit_status',
    options: auditStatusOptions,
  },
  {
    key: 'color',
    options: colorList,
  },
];
